package cn.gailvlun.gll.net.cross;

import cn.gailvlun.gll.net.base.Profile;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

public class CrossQuestionInfo extends RealmObject {
    @PrimaryKey
    private int id;
    private Profile owner;
    private String question;
    private String answer;
    private String otherAnswer;
    private String question_ref;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Profile getOwner() {
        return owner;
    }

    public void setOwner(Profile owner) {
        this.owner = owner;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getOtherAnswer() {
        return otherAnswer;
    }

    public void setOtherAnswer(String otherAnswer) {
        this.otherAnswer = otherAnswer;
    }

    public boolean isAnswerRight() {
        return this.answer.equals(otherAnswer);
    }

    public String getQuestion_ref() {
        return question_ref;
    }

    public void setQuestion_ref(String question_ref) {
        this.question_ref = question_ref;
    }
}
